package xyz.fefine;

/**
 * Created by feng_ on 2016/9/2.
 */
public class NumberLiteral extends ASTLeaf {
    NumberLiteral(Token token) {
        super(token);
    }
    public int value(){
        return token().getNumber();
    }

    @Override
    public Object eval(Enviorment enviorment) {
        return value();
    }
}
